package com.imachen.enums;

import lombok.Getter;

@Getter
public enum GlobalExceptionCode {

    OK("成功！", "0"),
    ERROR("失败！", "-1"),

    STOCK_ERROR("库存不足，出库失败！请及时采购","10000"),
    PARAM_IS_NULL_ERROR("参数不能为空","10001")
    ;


    private String message;

    private String code;


    GlobalExceptionCode(String message, String code) {
        this.message = message;
        this.code = code;
    }
}
